﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

public static class SessionExtensions
{
    public static T GetSessionValue<T>(this HttpSessionStateBase session, string key)
    {
        return (T)session[key];
    }

    public static void SetSessionValue(this HttpSessionStateBase session, string key, object value)
    {
        session[key] = value;
    }
}